//
//  main.m
//  OC01_类和对象
//
//  Created by Scott on 16/4/18.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Person.h"
#import "Student.h"

int main(int argc, const char * argv[]) {

    
#pragma mark - 知识点1: 定义一个类(Person)
/** 详见 Person 类文件. */
    
    // 创建Person对象.
    Person *per1 = [[Person alloc] init];
    
    
    // 访问(赋值, 取值)实例变量
    // 赋值
    per1->_name = @"Tom";
    per1->_age = 20;
    per1->_number = 1;
    
    // 取值
    NSLog(@"name:%@", per1->_name);
    NSLog(@"age:%d", per1->_age);
    NSLog(@"number:%ld\n", per1->_number);
    
    [per1 info];
    
    Student *stu = [[Student alloc] init];
    stu->_name = @"Lisi";
    stu->_age =
    
    return 0;
}









